import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/nav",
    name: "Nav",
    component: () => import("../views/Nav.vue"),
  },
  {
    path: "/banner",
    name: "Banner",
    component: () => import("../views/Banner.vue"),
  },
  {
    path: "/xingxing",
    name: "Xingxing",
    component: () => import("../views/Xingxing.vue"),
  },
  {
    path: "/back",
    name: "Back",
    component: () => import("../views/Back.vue"),
  },
  {
    path: "/tost",
    name: "Tost",
    component: () => import("../views/Tost.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
